package main

import (
	"day01/appconfig"
	"day01/models/mysql"
	"day01/routes"
	"github.com/gin-gonic/gin"
)

func main() {

	//连接数据库
	appconfig.Init()
	mysql.Init()
	//实例化
	r := gin.Default()
	routes.Routes(r)
	r.Run()
}
